package com.derbysoft.dswitch.adapter.ihg.webservice;

import com.derbysoft.dswitch.adapter.ihg.webservice.impl.AccountProvider;
import com.derbysoft.dswitch.adapter.ihg.webservice.impl.RequestPair;
import com.derbysoft.dswitch.adapter.ihg.webservice.impl.ResponsePair;

import java.util.List;

/**
 * Created by: jason
 * Date: 2012-05-22
 */
public interface WebService<RQ, RS> {
    RS invoke(RQ request, AccountProvider accountProvider) throws Exception;

    List<ResponsePair<RQ, RS>> batchInvoke(List<RequestPair<RQ>> requests, AccountProvider accountProvider) throws Exception;
}
